package org.example.erpapiservicespringpgimpl.mapper;

import org.example.erpapicommon.model.SimpleCategory;
import org.example.erpapicommon.model.TCategory;
import org.example.erpapiservicespringpgimpl.entity.CategoryEntity;

import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CategoryMapper {
    List<SimpleCategory> fromCategoriesToSimpleCategories(List<CategoryEntity> categories);
    List<TCategory> fromCategoriesToTCategories(List<CategoryEntity> categories);
}
